package com.example.lib_common.mmkv



import com.example.lib_storage.mmkv.MMKVOwner
import com.example.lib_storage.mmkv.MMKVProperty
import com.tencent.mmkv.MMKV

object AuthMMKV: MMKVOwner {
    /**
     * 分文件存储
     */
    override val mmkv: MMKV
        get() = MMKV.mmkvWithID(MMKVConfig.ID.AUTH)


    //token
    var token by MMKVProperty("")


    // 已登录
    fun hasLogin() = token.isNotEmpty()

}